<%--
  Created by IntelliJ IDEA.
  User: xwj32
  Date: 2023-05-11
  Time: 1:31
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: xwj32
  Date: 2023-05-09
  Time: 23:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <jsp:include page="/include/headtag.jsp"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/js/bootstrap.bundle.min.js"></script>
  <title>Document</title>
  <style>
    body{
      background-image: url("/images/background-img/leaves.png");
    }

    #container{
      border: 1px solid black;
    }
  </style>
</head>
<body>

<form action="<c:url value="/CustomerMangerServlet"/>" method="get">
  <input type="hidden" name="action" value="update" class="d-none">
  <div class="container mt-3" id="container">
    <h2><img src="<c:url value="/images/img/update.png"/>" alt="">
      更改信息</h2>
    <table class="table table-striped">
      <thead>
      <tr>
        <th>姓名</th>
        <th>电话号码</th>
        <th>密码</th>
        <th>操作</th>
      </tr>
      </thead>
      <tr>
        <td><div class="mb-3 mt-3">
          <input type="hidden" name="id" value="${requestScope.customer.pid}" class="d-none">
          <input type="text" class="form-control" name="name" value="${requestScope.customer.name}" id="name" placeholder="请输入姓名" >
        </div></td>
        <td><div class="mb-3 mt-3">
          <input type="text" class="form-control" value="${requestScope.customer.phoneNumber}" id="phonenumber" placeholder="请输入电话号码" name="phonenumber">
        </div></td>
        <td><div class="mb-3 mt-3">
          <input type="password" class="form-control" value="${requestScope.customer.password}" id="password" placeholder="请输入密码" name="password">
        </div></td>
        <td><button type="submit" class="btn btn-success" style="margin-top: 17px">确认更改</button></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>

